/* Login.css */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #FFC0CB; 
    position: relative;
    overflow: hidden; 
} 

/* 雪花特效样式 */
 .snowflake {
    position: absolute;
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    pointer-events: none;
    animation: snowfall linear infinite;
}

@keyframes snowfall {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

.login-form {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    z-index: 1; 
}

.login-form h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #FF69B4; 
}

.login-form label {
    display: block;
    margin-top: 10px;
    color: #333;
}

 input {
    width: 90%;
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.login-form button {
    width: 100%;
    padding: 10px;
    background-color: #FF69B4;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.login-form button:hover {
    background-color: #FF1493; 
}
 /* Verification area styles  */
.verify-area {
  margin: 20px 0;
  padding: 15px;
  background: #f5f5f5;
  border-radius: 8px;
  transition: all 0.3s;
}

.verify-area.shake {
  animation: shake 0.5s;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}

.verify-hint {
  margin-top: 10px;
  color: #666;
  font-size: 14px;
  text-align: center;
}


button {
  transition: all 0.3s;
}

button.disabled {
  background-color: #ccc;
  cursor: not-allowed;
}
 /* src/pages/Login.css */
/* src/pages/Login.css */


.login-box {
  width: 420px;
  padding: 40px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 16px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(8px);
  transform: translateZ(0);
}

.login-header {
  text-align: center;
  margin-bottom: 40px;
}

.login-header h2 {
  color: #1890ff;
  font-size: 28px;
  margin-bottom: 8px;
  font-weight: 600;
}

.login-header p {
  color: #666;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.verify-area {
  margin: 24px 0;
  min-height: 180px;
}

.login-btn {
  height: 44px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 2px;
  background: #1890ff;
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-btn:hover:not(:disabled) {
  background: #40a9ff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
}

.login-btn:disabled {
  background-color: #f5f5f5;
  color: rgba(0, 0, 0, 0.25);
  cursor: not-allowed;
}

.ant-input-affix-wrapper {
  padding: 10px 11px !important;
  border-radius: 8px !important;
  transition: all 0.3s;
}

.ant-input-affix-wrapper:hover {
  border-color: #40a9ff !important;
}

.ant-input-affix-wrapper-focused {
  border-color: #1890ff !important;
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.input-icon {
  color: rgba(0, 0, 0, 0.25) !important;
  font-size: 16px !important;
}

/* 拼图验证容器适配 */
.canvas-container {
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.puzzle-piece {
  border-width: 2px;
  transition: border-color 0.3s;
}